/**
 *
 */
package com.angel.email.attachments.strategies;

import java.util.List;

import javax.activation.DataHandler;
import javax.mail.Part;

import com.angel.common.keyValue.KeyValueResult;
import com.angel.email.exceptions.EmailAccessException;
import com.angel.email.exceptions.EmailAttachmentException;
import com.angel.webapp.file.FileInformation;

/**
 * @author William
 * @since 12/August/2009
 *
 */
public interface AttachmentsStrategy {

	public List<FileInformation> getAttachmentsFrom(DataHandler dataHandler, KeyValueResult attachmentsStrategies) throws EmailAttachmentException;

	public FileInformation getAttachmentsFrom(Part part, KeyValueResult attachmentsStrategies) throws EmailAttachmentException;

	public FileInformation getAttachmentFrom(DataHandler dataHandler) throws EmailAccessException;

}
